<template>
  <div class="hd">
    <slot class="back"></slot>
    <p>传智播客.黑马程序猿vue.js</p>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.hd {
  height: 50px;
  background-color: #26a2ff;
  color: #fff;
  display: flex;
  align-items: center;
  .back {
    font-size: 20px;
    font-weight: 700;
  }
  p {
    font-size: 16px;
    flex: 1;
    display: flex;
    justify-content: center;
  }
}
</style>
